//
//  RECheckLogin.h
//  录音
//
//  Created by ywy on 2016/12/22.
//  Copyright © 2016年 Wely. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>

@interface RECheckLogin : NSObject

+(BOOL)checkLogin;

// Post URL
+ (void)POST:(NSString *)URLString parameters:(id)parameters progress:(void (^)(CGFloat))progress  success:(void(^)(id responseObject))sucess failure:(void(^)(NSError *error))failure;


+ (void)GET:(NSString *)URLString parameters:(id)parameters progress:(void (^)(CGFloat))progress success:(void (^)(id))sucess failure:(void (^)(NSError *))failure;
// 设置时间戳  获取时间
+(NSString  *)stringFromDate:(NSDate*)date;
// 是设置文件路径的时间戳
+(NSString  *)stringFromDateTwo:(NSDate*)date;
// 是设置格式 时间戳
+(NSString  *)stringFromDateFirst:(NSDate*)date;

+(NSString *)jsonDicToString:(NSMutableDictionary*)dict;

+ (NSString *)imageBase64WithDataURL:(UIImage *)image;

// 分割字符串
+(NSString*)segmentationString:(NSString*)character andAllStr:(NSString*)allStr;

+(BOOL) isValidateMobile:(NSString *)mobile ;
// 日期的增加
+(NSString*)stringFromDateStr:(NSString *)dateStr withAdd:(BOOL)isAdd;

+(NSString *)getlocalPath:(NSString*)str allStr:(NSString*)allPath;
// 上传文件
+(void)POSTTwo:(NSString *)URLString parameters:(id)parameters withFormData:(void (^)(id))form progress:(void (^)(CGFloat))progress success:(void (^)(id))sucess failure:(void (^)(NSError *))failure;


/**
 获取 本地沙盒路径的 信息

 @return 文件名字的
 */
+(NSString * )getDocumentPath:(NSString*)pathStr;


+(NSString*)getDocumentPathWithStr:(NSString *)pathStr;

+(NSString*)getDataStr:(NSString*)dataStr andData:(NSDate*)date;




@end
